/*
 * debug.h
 *
 *  Created on: Feb 9, 2012
 *      Author: nickolaev
 */

#ifndef DEBUG_H_
#define DEBUG_H_

#ifndef NDEBUG
#include <stdio.h>
#define DEBUG(x)          {x;}
#define LOG(fmt, args...) printf("%s:%d "fmt,__FILE__,__LINE__,args)
#else
#define DEBUG(x)
#define LOG(fmt, args...)
#endif

#endif /* DEBUG_H_ */
